<?php
namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use App\Http\Controllers\BaseApiController;
use App\Services\Home\ActivityService;
class ActivityController extends BaseApiController{
    private $service;
    public function __construct(ActivityService $service){
        //继承基类的构造方法
        parent::__construct();
        //依赖注入service
        $this->service=$service;
    }
    /**
     * 活动列表
     */
    public function ActivityList(){
    	//获取活动列表
    	$data=$this->service->ActivityList();
    	return $data;
    }
}